<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <img
      src="https://i0.hdslb.com/bfs/vc/18e14b236c8c0478b9f126b53dc149718c8277d6.png@1c.webp"
      alt=""
    />
    <script>
      const img = new Image();
      img.onload = function () {
        const width = img.width;
        const height = img.height;
        console.log(`Width: ${width}, Height: ${height}`);
      };
      img.src =
        "https://i0.hdslb.com/bfs/vc/18e14b236c8c0478b9f126b53dc149718c8277d6.png@1c.webp";
    </script>
  </body>
</html>
